﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Web_Oto.Business;

namespace Web_Oto
{
    public partial class Contact : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                GetSeoInformations();
                GetContact();
            }
        }

        private void GetSeoInformations()
        {
            var seoBus = new SeoBus();
            var seo = seoBus.GetSeoPage("contact");
            if (seo != null)
            {
                Page.Title = seo.Title;
                Page.MetaDescription = seo.Description;
                Page.MetaKeywords = seo.Keyword;
            }
        }

        public string address = "";

        private void GetContact()
        {
            var contactBus = new ContactBus();
            var info = contactBus.GetContact();
            ltrDescription.Text = info.Description;
        }
    }
}